# This script is called on skin loading and unloading.
# It creates all necessary windows and possibly does some other actions.
# Following events are NOT supported in this script:
#  MouseDown
#  MouseIn
#  MouseOut
# Also note that since the script is global, controls can be only referenced using
# <window id>/<control id> method, ie 'setvalue 128/abcd #0' would set the value
# for control id abcd residing in window id 128.

Load

# Set necessary window IDs so Echo knows what to open
    SetBrowserWindowID 130
    SetPlaylistWindowID 131

# Create minimized window
    CreateWindow 132
# Create main window
    CreateWindow 128
# Create options window
    CreateWindow 129
# Create and hide network buffering window
    CreateWindow 134
    HideWindow 134

        CreateWindow 135

# Echo will create playlist and browser windows automatically

    AddMenuItem "About The Skin…" "AboutSkin"
    AddMenuItem "---"
    AddMenuItem "Minimize/Maximize" "MiniMaxi" M
    AddMenuItem "Equalizer" "EQWin" E